import Layout from '@/components/layout3/Layout.vue'
const productRoute =
{
  path: '/product',
  meta: {
    name: '商品管理',
    menu:
      [
        { name: '商品管理', tag: 'manage', iconCls: 'el-icon-message' },
        { name: '商品类别设置', tag: 'category', iconCls: 'el-icon-message' },
        { name: '商品统计', tag: 'statistics', iconCls: 'el-icon-message' }
      ]
  },
  component: Layout,
  redirect: '/product/manage/qgList',
  children: [
    // ------------manage--------------
    {
      path: 'manage/qgList',
      meta: {
        name: '抢购商品列表',
        tag: 'manage'
      },
      component: () => import('@/views/product/manage/qg-list')
    },
    {
      path: 'manage/yxList',
      meta: {
        name: '优选商品列表',
        tag: 'manage'
      },
      component: () => import('@/views/product/manage/yx-list')
    },
    // ------------category--------------
    {
      path: 'category/qg',
      meta: {
        name: '抢购分类管理',
        tag: 'category'
      },
      component: () => import('@/views/product/category/qg')
    },
    {
      path: 'category/yx',
      meta: {
        name: '优选分类管理',
        tag: 'category'
      },
      component: () => import('@/views/product/category/yx')
    },
    // ------------statistics--------------
    {
      path: 'statistics/cate',
      meta: {
        name: '商品类别统计',
        tag: 'statistics'
      }
    },
    {
      path: 'statistics/class',
      meta: {
        name: '商品分类统计',
        tag: 'statistics'
      }
    }
  ]
}

export default productRoute
